import request from '@/utils/request'

export function getClientsList(params) {
  return request({
    url: '/clients',
    method: 'get',
    params
  })
}
export function postClientsList(data) {
  return request({
    url: '/clients',
    method: 'post',
    data
  })
}
export function delClientsList(id) {
  return request({
    url: `/clients/${id}`,
    method: 'delete'
  })
}

export function idClientsList(id) {
  return request({
    url: `/clients/${id}`,
    method: 'get'
  })
}
export function putClientsList(data) {
  return request({
    url: `/clients/${data.id}`,
    method: 'put',
    data
  })
}

